﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="login.aspx.cs" Inherits="login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        使用者登入</h1>
    <asp:Label ID="Label1" runat="server" Text="帳號"></asp:Label>
    &nbsp;<asp:TextBox ID="UserTextBox" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserTextBox"
        ErrorMessage="請輸入帳號" Display="Dynamic" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="UserTextBox"
        ErrorMessage="帳號僅能包含英數字" Font-Bold="True" ForeColor="Red" ValidationExpression="^\w*$"></asp:RegularExpressionValidator>
    <br />
    <asp:Label ID="Label2" runat="server" Text="密碼"></asp:Label>
    &nbsp;<asp:TextBox ID="PasswordTextBox" runat="server" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="PasswordTextBox"
        Display="Dynamic" ErrorMessage="請輸入密碼" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="PasswordTextBox"
        ErrorMessage="密碼請勿包含不允許字元" Font-Bold="True" ForeColor="Red" ValidationExpression="^[^='&quot;]*$"></asp:RegularExpressionValidator>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="LoginButton" runat="server" OnClick="LoginButton_Click" Text="使用者登入"
        Width="90px" />
    &nbsp;或 <a href="signup.aspx" style="color: #FF00FF">加入會員</a>
</asp:Content>
